package com.competitions.videoedithelper.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

/***
 * @author Mapler
 */
@Setter
@Getter
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class ResponseModel {
    private int code;
    private String message;
    private Object data;

    public ResponseModel(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ResponseModel(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return "{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}

